import { createApp } from 'vue'
import App from './App.vue'
// 样式处理-重置样式
import 'normalize.css'
// 样式处理-公共样式
import '@/assets/styles/common.less'
import router from "./router";
import XtxUI from './components'
import Directives from './directives/index'
const app = createApp(App)
import { createPinia } from "pinia" //引入pinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //引入持久化插件

const pinia = createPinia() //创建pinia实例
pinia.use(piniaPluginPersistedstate) //将插件添加到 pinia 实例上


app.use(XtxUI)     // 注册插件
app.use(Directives) // 注册自定义指令
app.use(router)
app.use(pinia) // 使用 Pinia
app.mount('#app')
